package Operation2;

public class Data1 implements Runnable {
    String name;
    int price;

    public Data1(String name, int price){
    super();
    this.name =name;
    this.price = price;
    }

    public String aa(){return name;}
    public void bb(String name){this.name=name;}
    public int cc(){return price;}
    public void dd(int price){this.price = price;}

    public String getName() {
        return "Data1[name=" + name +",price=" + price + "]";
    }

    @Override
    public void run() {

    }

    //    @Override
//    public String ee(){return "Data1[name=" + name +",price=" + price + "]";}


}

